home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld: Complete Mac Interactive
/
Macworld Complete Mac Interactive CD)(1994).iso
/
The Best of BMUG
/
Utilities
/
Text and Speech
/
Alpha.5.76
/
Tcl
/
ElectricAlias
/
Aliases
/
aliases.C
< prev
next >
Wrap
Text File
|
1994-06-28
|
1KB
|
35 lines
# FILE: aliases.C
#
# LAST UPDATE: 2/16/93 6:32:31 AM
# HISTORY
#
# modified who rev reason
# -------- --- --- ------
# 02/16/93 DCB 1.1 Corrected #ifdef & #ifndef
# 01/03/93 DCB 1.0 Original
################################################################################
# Aliases for C mode
electricAlias-def •C •C •C
electricAlias-var C bb "\{"
electricAlias-var C eb "\}"
electricAlias-var C bc "//"
electricAlias-var C ec ""
electricAlias-def •C \{ "§{bb}\r\t•\r§{eb}•"
electricAlias-def •C do "do §{bb}\r\t•\r§{eb} while (•);•"
electricAlias-def •C for "for (•;•;•) §{bb}\r\t•\r§{eb}§{bc}endfor§{ec}•"
electricAlias-def •C while "while (•) §{bb}\r\t•\r§{eb}§{bc}endwhile§{ec}•"
electricAlias-def •C if "if (•) §{bb}\r\t•\r§{eb}§{bc}endif§{ec}•"
electricAlias-def •C elseif "\b§{eb} else if (•) §{bb}\r•"
electricAlias-def •C else "\b§{eb} else §{bb}\r•"
electricAlias-def •C switch "switch (•) §{bb}\r\t•\r§{eb}§{bc}endswitch§{ec}•"
electricAlias-def •C case "\bcase •:\r•"
electricAlias-def •C default "\bdefault:\r•"
electricAlias-def •C struct "struct §{bb}\r\t•\r§{eb} •;\r•"
electricAlias-def •C #if "#if •\r\t•\r#endif•"
electricAlias-def •C #ifdef "#ifdef •\r\t•\r#endifdef•"
electricAlias-def •C #ifndef "#ifndef •\r\t•\r#endifndef•"
electricAlias-def •C #else "\b#else\r•"